# Maintainer:
# Contributor: Essien Ita Essien <essiene@datavibe.net>
# Contributor: damir <damir@archlinux.org>

pkgname=libnids
pkgver=1.26
pkgrel=3
pkgdesc="An implementation of an E-component of Network Intrusion Detection System."
arch=('loong64' 'x86_64')
url="http://libnids.sourceforge.net/"
license=('GPL')
depends=('libnet' 'libpcap' 'glib2' 'libnsl')
makedepends=('pkgconfig')
source=(https://github.com/MITRECND/libnids/archive/$pkgver/$pkgname-$pkgver.tar.gz)
sha256sums=('3f3e9f99a83cd37bc74af83d415c5e3a7505f5b190dfaf456b0849e0054f6733')

build() {
  cd $pkgname-$pkgver

  ./configure --prefix=/usr --man=/usr/share/man --enable-shared
  make
}

package() {
  cd $pkgname-$pkgver

  make install_prefix="$pkgdir" install
  ln -s libnids.so.1.24 "$pkgdir"/usr/lib/libnids.so.1
}
